package injections;

import java.util.List;

/**
 * Created by rehak on 2/11/14.
 */
public class DefinedProperty {

    private final String name;
    private final List<PropertyValue> values;

    public DefinedProperty(String name, List<PropertyValue> values) {
        this.name = name;
        this.values = values;
    }

    public String getName() {
        return name;
    }

    public List<PropertyValue> getValues() {
        return values;
    }

    public boolean isMulti() {
        return values.size() > 1;
    }

    public boolean isSingle() {
        return values.size() == 1;
    }

    public boolean isEmpty() {
        return values.isEmpty();
    }



}
